package com.yh.correct.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 社会关系表
 * 
 * @author 王卫
 *
 */
public class SocialRelations {
	/**
	 * 编号
	 */
	private int id;
	/**
	 * 姓名
	 */
	private String name;
	/**
	 * 关系
	 */
	private String relation;
	/**
	 * 出生日期
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date birthday;
	/**
	 * 政治面貌
	 */
	private String zz_status;
	/**
	 * 工作单位
	 */
	private String org;
	/**
	 * 地址
	 */
	private String address;
	/**
	 * 电话
	 */
	private String phonenum;
	/**
	 * 矫正人员id
	 */
	private int pid;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getZz_status() {
		return zz_status;
	}

	public void setZz_status(String zz_status) {
		this.zz_status = zz_status;
	}

	public String getOrg() {
		return org;
	}

	public void setOrg(String org) {
		this.org = org;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhonenum() {
		return phonenum;
	}

	public void setPhonenum(String phonenum) {
		this.phonenum = phonenum;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	@Override
	public String toString() {
		return "SocialRelations [id=" + id + ", name=" + name + ", relation=" + relation + ", birthday=" + birthday
				+ ", zz_status=" + zz_status + ", org=" + org + ", address=" + address + ", phonenum=" + phonenum
				+ ", pid=" + pid + "]";
	}

}
